package com.trz.cqrs.es.event.priority;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Documented
@Inherited
@Retention(RUNTIME)
@Target({TYPE})
public @interface EventPriority {

    Priority value();

    Strategy strategy() default Strategy.GRADIENT_DESCENT;

}
